package com.yy.user.service;

import com.yy.user.User;

import java.util.List;
import java.util.Optional;

/**
 * @author yangyao
 * @Description: User接口
 * @date 2018/8/23 14:53
 */
public interface UserService {

    public User findByUsername(String username);

    public List<User> findAll();

    public Optional<User> findById(Long id);

    public User save(User user);

    public void delete(Long id);
}
